﻿using System;
using System.Data;
using System.Collections.Generic;

using Com.Framework.Data;
using Com.Library.DB;

namespace Com.Library.DB.Recruit
{
	internal class RecruitCreate : DBDataReader<DataEntity, DataEntity>
	{
		public RecruitCreate()
			: base(new ConnectionString(), "TSP_Recruit_Create")
		{
		}

		protected override void ParameterInitialize()
		{
			AddParameter("strName", SqlDbType.NVarChar, 60, SqlDataInOut.Input);
			AddParameter("strPersonalNo", SqlDbType.Char, 50, SqlDataInOut.Input);
			AddParameter("strPhone", SqlDbType.VarChar, 14, SqlDataInOut.Input);
			AddParameter("strEmail", SqlDbType.VarChar, 200, SqlDataInOut.Input);
			AddParameter("strPostNo", SqlDbType.VarChar, 10, SqlDataInOut.Input);
			AddParameter("strAddress", SqlDbType.NVarChar, 600, SqlDataInOut.Input);
			AddParameter("strHopeStore", SqlDbType.NVarChar, 400, SqlDataInOut.Input);
			AddParameter("n1JobTime", SqlDbType.TinyInt, 1, SqlDataInOut.Input);
			AddParameter("strAcademic", SqlDbType.NVarChar, -1, SqlDataInOut.Input);
			AddParameter("strCareer", SqlDbType.NVarChar, -1, SqlDataInOut.Input);
			AddParameter("strLicense", SqlDbType.NVarChar, -1, SqlDataInOut.Input);
			AddParameter("strFileURL", SqlDbType.VarChar, 200, SqlDataInOut.Input);
			AddParameter("n4RecruitNo", SqlDbType.Int, 4, SqlDataInOut.Output);
		}
	}
}